<?php
$scale = 0.56444444502018;
$height = 1149.80314843;
$width = 1463.38582528;
$dpi_x = 150;
$dpi_y = 150;
$img = file_get_contents(dirname(__FILE__) . '/img/a_base64.txt');

$expectedWidth = 140;//mm
$expectedHeight = 110;//mm
?>
<div id="testResult" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$.ajax({
		type: "POST",
		url: "/create_image_file.php",
		data: { 
		 'imgBase64': "<?php echo $img; ?>",
		 'width' : "<?php echo $width; ?>",
		 'height': "<?php echo $height; ?>",
		 'scale' : "<?php echo $scale; ?>",
		 'dpi_x' : "<?php echo $dpi_x; ?>",
		 'dpi_y' : "<?php echo $dpi_y; ?>"
		}
	}).done(function(o) {
		$("#testResult").load("<?php echo "/test/_05_getPdfData.php?width=$expectedWidth&height=$expectedHeight"; ?>");
	});
});
</script>